//
//  TLLogoutView.m
//  WXReader
//
//  Created by huaya on 2025/3/21.
//  Copyright © 2025 Andrew. All rights reserved.
//

#import "TLLogoutView.h"

@interface TLLogoutView ()
@property (weak, nonatomic) IBOutlet UIButton *cancelBtn;

@end

@implementation TLLogoutView

+ (instancetype)createView {
    return [[[NSBundle mainBundle] loadNibNamed:@"TLLogoutView" owner:nil options:nil] lastObject];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    self.layer.cornerRadius = 8;
    self.cancelBtn.layer.masksToBounds = YES;
    self.cancelBtn.layer.cornerRadius = 47/2;
    
}
- (IBAction)confirmAction:(id)sender {
    if (self.doneBlock) {
        self.doneBlock();
    }
}
- (IBAction)cancelAction:(id)sender {
    if (self.cancelBlock) {
        self.cancelBlock();
    }
}

@end
